import 'package:flutter/material.dart';
import '../Constants/constants.dart';
import '../Constants/styles/app_style.dart';

class BackTitle extends StatelessWidget {
  final String title;
  final VoidCallback pressed;
  BackTitle({@required this.title, @required this.pressed});

  @override
  Widget build(BuildContext context) {
    return Column(children: [
      Container(
        //padding: EdgeInsets.only(top:10,bottom:10),
        child: Row(
          children: <Widget>[
            //SizedBox(width: Constants.Wh * 15),
            Container(
                width: Constants.Wh * 130,
                height: Constants.Hh * 134,
                child: FlatButton(
                    onPressed: this.pressed,
                    padding: EdgeInsets.all(0),
                    child: Image.asset(
                      'assets/images/ima_left_arrow.png',
                      width: Constants.Wh * 28,
                      height: Constants.Hh * 46,
                      fit: BoxFit.fill,
                    ))),
            //SizedBox(width: Constants.Wh * 5),
            Text(this.title, style: TextStyleNw.barTitle),
          ],
        ),
      ),
      Divider(height: 1, color: Color(AppColors.SpliteLineColor)),
    ]);
  }
}
